-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ufe 0.4.8: Add classifications and metadata to def #2315
Conversation
Ufe 0.4.8 has multiple changes to improve NodeDef discovery: NodeDef: - Expose read-only interface to query node classifications (allows sorting them in a node picker) - Expose read-only metadata API (limited to known USD metadata tags at the moment) - Remove internally kept data. Everything is built on-the-fly from the SdrShaderNode information - Expanded the port API to allow name discovery and single port queries AttributeDef: - The base class in Ufe is now a full interface. Added an implementation for USD that returns the information directly from the associated SdrShaderProperty - Expose read-only metadata API (limited to known USD tags at the moment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments sprinkled in, but I am very hopeful we can get rid of 0.4.8 checks in favor of 0.4.10 checks, as UFE 0.4.8 and 0.4.9 will never be released publicly, unless I'm mistaken.
lib/mayaUsd/ufe/UsdShaderNodeDef.cpp
Outdated
|
||
Ufe::AttributeDef::ConstPtr UsdShaderNodeDef::output(const std::string& name) const | ||
{ | ||
if (fShaderNodeDef) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these two if conditions be combined? Unless of course you follow Pierre's suggestion of removing the nullptr check.
Ufe 0.4.8 has multiple changes to improve NodeDef discovery:
NodeDef:
sorting them in a node picker)
the moment)
SdrShaderNode information
AttributeDef:
for USD that returns the information directly from the associated
SdrShaderProperty
moment)